import React from 'react'
import { useLocation, useNavigate, useRoutes } from 'react-router-dom'
import { Button, Result } from 'antd';
export default function Error() {
  const usenavgateTO = useNavigate()
  return (
    <div><Result
      status="warning"
      title="There are some problems with your operation."
      extra={
        <Button onClick={() => {
          usenavgateTO('/home')
        }} type="primary" key="console">
          返回首页
        </Button>
      }
    /></div>
  )
}
